package com.kmt.plaza.dao;

import com.kmt.plaza.entity.Orders;
import com.kmt.plaza.general.GeneralDAO;
import com.kmt.plaza.vo.OrderVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrdersMapper extends GeneralDAO<Orders>  {
    public List<OrderVO> selcetOrderList(@Param("userId") String userId,
                                  @Param("status") String status,
                                  @Param("start") int start,
                                  @Param("limit") int limit);
    public List<OrderVO> selcetOrderLists(@Param("start") int start,
                                         @Param("limit") int limit);

    public List<Orders> queryOrderKey(String keyWord,String status, Integer payType,String receiverName);
    /**
     * 评价成功修改订单的状态
     */
    public int updateOrderStatu(String orderId);
    /**
     * 点击去支付修改订单状态为待收货
     */
    public int ToPayOrderStatus(String orderId);
    /**
     * 管理员立即发货
     */
    public int immediateDelivery(String orderId);
    /**
     * 点击确认收货修改订单状态为待评价
     */
    public int ConfirmReceipt(String orderId);

}
